﻿using System.ComponentModel.DataAnnotations;
using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Models
{
    ///<summary>
    ///
    ///</summary>
    [Tenant("ERP_PROD")]
    [SugarTable("EP_COMPONENT_INFO","ERP_PROD")]
    public partial class Epcomponentinfo
    {
           public Epcomponentinfo() { }

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(50, ErrorMessage ="EPICOR_SN长度50" )]
           public string EPICOR_SN {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(50, ErrorMessage ="PART_NO长度50" )]
           public string PART_NO {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(23, ErrorMessage ="TEST_TIME长度23" )]
           public DateTime? TEST_TIME {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="PROCESS_ID必填" )]
           public int PROCESS_ID {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(30, ErrorMessage ="PROCESS_NAME长度30" )]
           public string PROCESS_NAME {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(-1, ErrorMessage ="COMPONENT长度-1" )]
           public string COMPONENT {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(50, ErrorMessage ="MATERIAL_PART_NO长度50" )]
           public string MATERIAL_PART_NO {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(20, ErrorMessage ="MATERIAL_LOT_NO长度20" )]
           public string MATERIAL_LOT_NO {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(20, ErrorMessage ="MATERIAL_DATE_CODE长度20" )]
           public string MATERIAL_DATE_CODE {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(40, ErrorMessage ="MATERIAL_SN长度40" )]
           public string MATERIAL_SN {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(30, ErrorMessage ="LotNum长度30" )]
           public string LotNum {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? MtlSeq {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="JobNum必填" )]
           [StringLength(14, ErrorMessage ="JobNum长度14" )]
           public string JobNum {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public string JobAsmKey {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public string JobMtlKey {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public string ProActivKey {get;set;}

           /// <summary>
           /// Desc:
           /// Default:N
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="PRODUCTION_LOT_NO必填" )]
           [StringLength(40, ErrorMessage ="PRODUCTION_LOT_NO长度40" )]
           public string PRODUCTION_LOT_NO {get;set;}

           /// <summary>
           /// Desc:
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public int? LINK_MAT_SN {get;set;}

    }
}
